#ifndef TORE_H
#define TORE_H
#include "Objet.h"
#include "Point.h"
#include "Intersection.h"
#include "Rayon.h"
#include "Vecteur.h"
#include "Maths.h"
#include <cmath>
#include <stdlib.h>

class Tore : public Objet {

protected:

	double rr, RR;
	Point centre;

public:

	Tore(){boite.setUsed(true);}
	Tore(double r, double R, Point& p):rr(r), RR(R), centre(p){boite = BoiteEnglobante(r+r+R+R, r+r+R+R, r+r+R+R, centre);}
	~Tore(){}

	void intersection(const Rayon &,Intersection &);
	bool ombre(const Rayon &, double);

};
#endif